package com.kavenka.zhufengfm.app.tasks.discover;

import android.os.AsyncTask;
import com.kavenka.zhufengfm.app.Constants;
import com.kavenka.zhufengfm.app.client.DiscoverClientAPI;
import com.kavenka.zhufengfm.app.tasks.BaseTask;
import com.kavenka.zhufengfm.app.tasks.TaskCallBack;
import com.kavenka.zhufengfm.app.tasks.TaskResult;

/**
 * Created by kavenka on 2015/9/25 0025.
 */
public class DiscoverCategoryTask extends BaseTask{

    public DiscoverCategoryTask(TaskCallBack taskCallBack) {
        super(taskCallBack);
    }

    @Override
    protected TaskResult doInBackground(String... params) {
        TaskResult ret=new TaskResult();
        ret.action= Constants.TASK_ACTION_DISCOVER_CATEGORY;
        ret.data= DiscoverClientAPI.getDiscoverCategories();
        return ret;
    }
}
